//
//  GameDetailCorrelationCollectionViewCell.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2022/9/30.
//

#import "GameDetailCorrelationCollectionViewCell.h"

@interface GameDetailCorrelationCollectionViewCell ()

@property (weak, nonatomic) IBOutlet YYAnimatedImageView *gameIcon;
@property (weak, nonatomic) IBOutlet UILabel *gameNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *daijinquan;
@property (weak, nonatomic) IBOutlet UILabel *gameSubNameLabel;


@end

@implementation GameDetailCorrelationCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.daijinquan cornerRectType:(UIRectCornerTopLeft|UIRectCornerTopRight|UIRectCornerBottomRight) withCornerRadius:7.5];
    

}

- (void)setDetailModel:(GameDetailNewModel *)detailModel
{
    _detailModel = [GameDetailNewModel mj_objectWithKeyValues:[LocalData getMenudicWithKey:@"gamedetail"]];
    
    [self.gameIcon yy_setImageWithURL:[NSURL URLWithString:_detailModel.gameMainIcon] placeholder:placeholder_image];
    self.gameNameLabel.text = _detailModel.gameName;
    self.gameSubNameLabel.text = _detailModel.gameSubName;
    self.daijinquan.hidden = !_detailModel.isDaijinquan.boolValue;
}

@end
